﻿using System;
using DBA.Common;
using System.Collections;
using System.Collections.Generic;

namespace DBA.Model
{
    /// <summary>
    ///功能描述    :    YearMoney
    ///开发者      :    
    ///建立时间    :    2012-08-22 13:49:28
    ///修订描述    :    
    ///进度描述    :    
    ///版本号      :    1.0
    ///最后修改时间:    2012-08-22 13:49:28
    /// </summary>
        [OrmPropertyAttribute(TableName = "YearMoney",PrimaryKey = "Ym_ID",PrimaryKeyType = "IDENTITY",ParameterType = "int")]
    public class YearMoney
    {
        #region 构造函数
        public YearMoney(){}
        
        public YearMoney(int ym_ID,int sp_ID,string ym_year,decimal ym_Money)
        {
           this._ym_ID = ym_ID;
           this._sp_ID = sp_ID;
           this._ym_year = ym_year;
           this._ym_Money = ym_Money;
         

        }
        #endregion
        
        #region 成员
        private int _ym_ID;
        private int _sp_ID;
        private string _ym_year;
        private decimal _ym_Money;
      
        #endregion
        
        #region 属性
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "int",ParameterLength = 4,IsNull = "0")]
        public virtual int Ym_ID
        {
            get { return _ym_ID; }
            set { _ym_ID = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "int",ParameterLength = 4,IsNull = "1")]
        public virtual int Sp_ID
        {
            get { return _sp_ID; }
            set { _sp_ID = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "varchar",ParameterLength = 8,IsNull = "1")]
        public virtual string Ym_year
        {
            get { return _ym_year; }
            set { _ym_year = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "decimal",ParameterLength = 10,IsNull = "1")]
        public virtual decimal Ym_Money
        {
            get { return _ym_Money; }
            set { _ym_Money = value; }
        }
    
        #endregion
    }
}